package com.ibook.service;

import com.github.pagehelper.PageInfo;
import com.ibook.bo.BookBo;
import com.ibook.common.ServerResponse;
import com.ibook.pojo.Categories;
import com.ibook.pojo.Tag;
import com.ibook.vo.BookVo;

import java.util.List;

/**
 * Created by heziqi on 2017/6/5.
 */
public interface ProductService {

    ServerResponse<PageInfo> bookList(int categorieid, int pageNum, int pageSize);

    ServerResponse<PageInfo> searchLsit(String bookName, String categoriesName,
                                        String authorName, String publishingName, int pageNum, int pageSize);

    ServerResponse<List<Categories>> cateList();

    ServerResponse<List<Tag>> tagList(int categoriesId);

    ServerResponse<BookBo> bookDetail(int bookId);

    ServerResponse<List<BookVo>> bookRecom(int categoriesId);

    ServerResponse raiseHots(int bookId);

    ServerResponse commentToBook(int userId,int bookId,String detail);

    ServerResponse<PageInfo> bookComments(int bookId,int pageNum,int pageSize);
}
